package com.luckberry.murder.util;

import com.luckberry.murder.entity.User;

public class PermUtil {

    public static String getPerm(User user) {
        String perm = user.getPerm();
        if (perm.equals("admin")) return "管理员";
        if (perm.equals("member")) return "店员";
        if (perm.equals("user")) return "用户";
        if (perm.equals("vip")) return "会员";
        return "NULL";
    }
}
